import Vue from 'vue'
import VueRouter from 'vue-router'
import Content from "../components/Content.vue";
import Main from "../components/Main.vue"

// 安装路由
Vue.use(VueRouter);

// 配置导出路由
export default new VueRouter({
  routes:[
    {
      // 路由路径
      path:'/content',
      name: 'content',
      // 跳转组件
      component:Content
    },
    {
      //
      path:'/main',
      name:'main',
      //
      component:Main
    }
  ]
});
